package com.iteye.trafficRecorder;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class WebService {
	
	public static final String userId = "75941B66-6427-4121-ACAD-8C367885F304";
	
	public static final String taskGuid = "65c90ade-4d98-4e32-8fc3-d17de5aba2de";
	
	public static final String dataType_mobile_info = "MobileUserInfo";
	
	public static final String dataType_location = "Location";
	
	public static List<NameValuePair> initParams(String dataType, String guid, String data) {
		List<NameValuePair> params = new ArrayList<NameValuePair>();
		params.add(new BasicNameValuePair("UserID", userId));
		params.add(new BasicNameValuePair("TaskGuid", taskGuid));
		params.add(new BasicNameValuePair("DataGuid", guid));
		params.add(new BasicNameValuePair("DataType", dataType));
		params.add(new BasicNameValuePair("XmlData", data));
		return params;
	}
}
